<?php

$result = array();

include 'inc/conn.php';

$rs = mysql_query("select id, embassy from ats_embassy");

$items = array();
while ($row = mysql_fetch_object($rs)) {
    array_push($items, $row);
}
$result = $items;

echo json_encode($result);
//echo $result;

?>